<?php 
/**
 * sdfsdf
 */
require_once('config.php');
require_once('model/post/post.php');
require_once('./smarty/smarty_config.php');





// fetch the post list from the post table
$post = new Post();
$posts_list_info = $post -> get_post_all_valid();

$posts_total = $post -> rows_num();
$smarty -> assign('posts_list',$posts_list_info);
$smarty -> assign('title',$title);
$smarty -> assign('posts_total',$posts_total);
$smarty -> display('right.tpl');
$smarty -> display('header.tpl');
$smarty -> display('index.tpl');
$smarty -> display('footer.tpl');
?>